//
//  ChatInputView.h
//  YunShouHu
//
//  Created by WangQiang on 16/6/19.
//  Copyright © 2016年 WangQiang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KDImageTextView.h"
@class ChatMsgInputView;

@protocol ChatMsgInputViewDelegate <NSObject>
-(void)inputView:(ChatMsgInputView *)inputView didSendImage:(UIImage *)originalImage imageURL:(NSURL *)imageURL;
-(void)inputView:(ChatMsgInputView *)inputView didSendVoice:(NSData *)voiceData length:(CGFloat)length path:(NSString *)voicePath;
-(void)inputView:(ChatMsgInputView *)inputView didSendText:(NSAttributedString *)attibuteText;

@end
@interface ChatMsgInputView : UIView
+(instancetype)chartInputView;
-(void)clearKeyBoard;//清除键盘
@property (weak ,nonatomic) id<ChatMsgInputViewDelegate>delegate;
@property (weak, nonatomic ,readonly)  KDImageTextView *inputView;
@end
